import request from '@/utils/request'

// 查询碑帖欣赏列表
export function listRubbing(query) {
  return request({
    url: '/rubbing/rubbing/list',
    method: 'get',
    params: query
  })
}

// 查询碑帖欣赏详细
export function getRubbing(id) {
  return request({
    url: '/rubbing/rubbing/' + id,
    method: 'get'
  })
}

// 新增碑帖欣赏
export function addRubbing(data) {
  return request({
    url: '/rubbing/rubbing',
    method: 'post',
    data: data
  })
}

// 修改碑帖欣赏
export function updateRubbing(data) {
  return request({
    url: '/rubbing/rubbing',
    method: 'put',
    data: data
  })
}

// 删除碑帖欣赏
export function delRubbing(id) {
  return request({
    url: '/rubbing/rubbing/' + id,
    method: 'delete'
  })
}
